home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
tpapi.exe
/
DOCS
/
OLDDOCS.LZH
/
NWQUEUE.DOC
< prev
next >
Wrap
Text File
|
1992-10-26
|
12KB
|
304 lines
QUEUE SERVICES
==============
-------------------------------------------------------------------------------
AboutServicingQueueJobAndFile (QueueID : OT_BinderyID; JobNumber : WORD;
VAR FileName : FileOfByte) : WORD;
Used to abort the servicing of a job, closes the asscoiated file, and
removes the job entry from the queue.
QueueID (Input) : object ID of the queue
JobNumber (Input) : number of the job to abort
FileName (Input/Output) : the handle of the queue file to be
aborted. Returned from
CreateQueueJobAndFile
-------------------------------------------------------------------------------
AttachQueueServerToQueue (QueueID : OT_BinderyID) : WORD;
Attaches a station to a queue as a queue (job) server.
QueueID (Input) : object ID of the queue
-------------------------------------------------------------------------------
ChangeQueueJobEntry (QueueID : OT_BinderyID; Job : JobStruct) : WORD;
Changes information in a job's entry.
QueueID (Input) : object ID of the queue
Job (Input) : new details of the job to be changed
-------------------------------------------------------------------------------
ChangeQueueJobPosition (QueueID : OT_BinderyID; JobNumber : WORD;
NewPosition : BYTE) : WORD;
Changes a job's position in a queue.
QueueID (Input) : object ID of the queue
JobNumber (Input) : number of the job to move
NewPosition (Input) : the new position of the job
-------------------------------------------------------------------------------
ChangeToClientRights (QueueID : OT_BinderyID; JobNumber : WORD) : WORD;
Allows a queue (job) server to assume the login identity of the client that
placed the job in the queue.
QueueID (Input) : object ID of the queue
JobNumber (Input) : number of the job
-------------------------------------------------------------------------------
CloseFileAndAbortQueueJob (QueueID : OT_BinderyID; JobNumber : WORD;
VAR FileName : FileOfByte) : WORD;
Removes a job from a queue and closes the associated file.
QueueID (Input) : object ID of the queue
JobNumber (Input) : number of the job to close
FileName (Input/Output) : the handle of the queue file to abort.
Returned from CreateQueueJobAndFile
-------------------------------------------------------------------------------
CloseFileAndStartQueueJob (QueueID : OT_BinderyID; JobNumber : WORD;
VAR FileName : FileOfByte) : WORD;
Closes an associated file and releases the job for servicing.
QueueID (Input) : object ID of the queue
JobNumber (Input) : number of the job to close
FileName (Input/Output) : the handle of the queue file to close.
Returned from CreateQueueJobAndFile
-------------------------------------------------------------------------------
CreateQueue (QueueName : ObjectNameType; QueueType : OT_BinderyType;
DirectoryHandle : BYTE; PathName : QueuePathNameType;
VAR QueueID : OT_BinderyID) : WORD;
Creates a new queue on a file server.
QueueName (Input) : name of the new queue
QueueType (Input) : type of the new queue
DirectoryHandle (Input) : directory handle pointing to the
location of the new queue
PathName (Input) : path pointing to the location of the
new queue
QueueID (Output) : the object ID of the new queue
-------------------------------------------------------------------------------
CreateQueueJobAndFile (QueueID : OT_BinderyID; VAR Job : JobStruct;
VAR FileName : FileOfByte) : WORD;
Places a new job in a queue.
QueueID (Input) : object ID of the queue
Job (Input/Ouput) : job details of the new job
FileName (Output) : the handle of the queue file created
-------------------------------------------------------------------------------
DestroyQueue (QueueID : OT_BinderyID) : WORD;
Removes a queue from the bindery and file system of a file server.
QueueID (Input) : object ID of the queue to destroy
-------------------------------------------------------------------------------
DetachQueueServerFromQueue (QueueID : OT_BinderyID) : WORD;
Removes the requesting station from the queue's list of active queue (job)
servers.
QueueID (Input) : object ID of the queue from which to
detach
-------------------------------------------------------------------------------
FinishServicingQueueJobAndFile (QueueID : OT_BinderyID; JobNumber : WORD;
Charge : LONGINT;
VAR FileName : FileOfByte) : WORD;
Allows a queue (job) server to signal QMS when it has completed a job.
QueueID (Input) : object ID of the queue
JobNumber (Input) : number of the job just completed
Charge (Input) : amount to be charged for servicing the
queue job
FileName (Input/Output) : file handle of the queue file. Returned
from CreateQueueJobAndFile
-------------------------------------------------------------------------------
GetQueueJobList (QueueID : OT_BinderyID; VAR JobCount : WORD;
VAR JobNumberList : Word250ArrayType;
MaxJobNumbers : WORD) : WORD;
Provides a list of all jobs contained in a queue.
QueueID (Input) : object ID of the queue
JobCount (Output) : number of jobs in the queue
JobNumberList (Output) : contains the job numbers of all jobs
MaxJobNumbers (Input) : the maximum number of job details to
return
-------------------------------------------------------------------------------
GetQueueJobFileSize (QueueID : OT_BinderyID; JobNumber : WORD;
VAR SizeOfFile : LONGINT) : WORD;
Finds the size of the associated file for a job queue.
QueueID (Input) : object ID of the queue
SizeOfFile (Output) : the job's file size
-------------------------------------------------------------------------------
ReadQueueCurrentStatus (QueueID : OT_BinderyID; VAR QueueStatus : WORD;
VAR NumberOfJobs, NumberOfServers : WORD;
VAR ServerIDList : Longint25ArrayType;
VAR ServerStationList : Word25ArrayType;
MaxNumberOfServers : WORD) : WORD;
Reads the current status of a queue.
QueueID (Input) : object ID of the queue
QueueStatus (Output : the status of the queue
NumberOfJobs (Output) : number of jobs in the queue
NumberOfServers (Output) : number of servers attached to queue
ServerIDList (Output) : list of object ID's of servers that are
attached to the queue
ServerStationList (Output) : list of connection numbers of the
servers that are attached to the queue
MaxNumberOfServers (Input) : maximum number of servers to return
information about
-------------------------------------------------------------------------------
ReadQueueJobEntry (QueueID : OT_BinderyID; JobNumber : WORD;
VAR Job : JobStruct) : WORD;
Retrieves information about a job in a queue.
QueueID (Input) : object ID of the queue
JobNumber (Input) : job entry number of the job to return
information about
Job (Output) : job information of the requested job
-------------------------------------------------------------------------------
ReadQueueServerCurrentStatus (QueueID : OT_BinderyID;
ServerID : OT_BinderyID;
ServerStation : WORD;
VAR ServerStatusRecord : Byte64ArrayType) : WORD;
Reads the current status record of an attached queue (job) server.
QueueID (Input) : object ID of the queue
ServerID (Input) : object ID of the queue server
ServerStation (Input) : connection number of the queue server
ServerStatusRecord (Output) : status information of the queue server
-------------------------------------------------------------------------------
RemoveJobFromQueue (QueueID : OT_BinderyID; JobNumber : WORD) : WORD;
Removes a job from a queue.
QueueID (Input) : object ID of the queue
JobNumber (Input) : number of the job to delete
-------------------------------------------------------------------------------
RestoreQueueServerRights : WORD;
Restores a server's own login identity after it has assumed the client's
rights.
-------------------------------------------------------------------------------
ServiceQueueJobAndOpenFile (QueueID : OT_BinderyID; TargetJobType : WORD;
VAR Job : JobStruct;
VAR FileName : FileOfByte) : WORD;
Allows a queue server to request a new job for servicing.
QueueID (Input) : object ID of the queue
TargetJobType (Input) : type of job that the server will
service
Job (Output) : information about the job to be
serviced
FileName (Output) : returns the handle of the queue file
-------------------------------------------------------------------------------
SetQueueCurrentStatus (QueueID : OT_BinderyID; QueueStatus : WORD) : WORD;
Controls the addition of jobs and job servers to a queue by setting or
clearing bits in the queueStatus byte.
QueueID (Input) : object ID of the queue
QueueStatus (Input) : control byte that determines the status
of the queue
-------------------------------------------------------------------------------
SetQueueServerCurrentStatus (QueueID : OT_BinderyID;
ServerStatusRecord : Byte64ArrayType) : WORD;
Updates QMS's copy of a queue (job) server's status record.
QueueID (Input) : object ID of the queue
ServerStatusRecord (Input) : contains the new status record of the
server
------------------------------------------------------------------------------